import { createStore } from 'vuex'

export default createStore({
  state: {
    userInfo: {
      userName: "",
      password: "",
      isLogin: false
    }
  },
  getters: {
  },
  mutations: {
    loginOut(state){
      state.userInfo={ userName: "",password: "",isLogin: false }
      sessionStorage.removeItem('userInfo')
    }
  },
  actions: {
  },
  modules: {
  }
})
